<?php
/**
 * Created by PhpStorm.
 * User: stupboy
 * Date: 2018/2/27
 * Time: 14:22
 */
namespace app\api\controller;
use \think\Controller;
use \think\Db;
class Page extends Controller
{
    private $table = 'mobile_page';
    /**
     * 控件页面返回内容
     * @return mixed
     */
    public function index(){
        $where['type']      = input('type',1);
        $where['area_id']   = input('area_id',0);
        $where['page_type'] = input('page_type',0);
        $page               = Db::name($this->table)->where($where)->find();
        $this->assign('page',$page);
        return $this->fetch();
    }
}